from flask import Flask, Blueprint, render_template, session, redirect, url_for, request, Response,jsonify
# 这里注意要导入models中的models，而不是extends中的models
from App.models import *

waterpayblue = Blueprint('waterpayblue', __name__)

@waterpayblue.route('/waterpayBySid',methods=['GET','POST'])
def getWaterPay():
    sid = request.values.get('sid')
    result = getWaterpayByDid(sid)
    result_dict = [dict(model) for model in result]
    return jsonify(result_dict)